/**
 * 环境配置封装
 */

// 获取当前环境
const env = import.meta.env.MODE || 'prod';
console.log(env);
// fastmock 的地址 https://www.fastmock.site/#/project/bcb858bfe26bf62281e04e23c7cfe4c6
const mockApi = 'https://www.fastmock.site/mock/bcb858bfe26bf62281e04e23c7cfe4c6/test'
// 环境变量的映射
const EnvConfig = {
    development: {
        baseApi: '/',
        mockApi,
    },
    test: {
        baseApi: '/',
        mockApi,
    },
    prod: {
        baseApi: '/',
        mockApi,
    },
}
export default {
    env,
    mock: true,
    // 解构出当前环境
    ...EnvConfig[env]
}